package com.karaoke.android.data.repository

import android.content.res.Resources
import com.karaoke.android.data.NetworkTools
import com.karaoke.android.data.domain.PageInfo
import com.karaoke.android.data.domain.QSinger
import com.karaoke.android.data.domain.Singer
import com.karaoke.android.data.domain.Song
import com.karaoke.android.data.krealmextensions.query
import com.karaoke.android.data.krealmextensions.save
import com.karaoke.android.data.onIO
import com.karaoke.android.data.onUI
import com.orhanobut.hawk.Hawk
import io.realm.Realm
import io.realm.RealmObject
import io.realm.RealmQuery
import rx.Observable

/**
 * Created by allen on 2017/4/29.
 */
object SingerRepository
{
    fun getSingers(qSinger: QSinger, onSuccess: (PageInfo<Singer>) -> Unit, onError: (Throwable) -> Unit)
    {
        NetworkTools.singerService.getSingers(qSinger).onIO()
                .onUI(onSuccess,onError)
    }
}
